import request from '@/utils/request'

export default{

  // 1 添加讲师
  addTeacher(eduTeacher) {
    return request({
      url: `/eduService/eduTeacher/addTeacher`,
      method: 'post',
      data: eduTeacher
    })
  },
  // 2 获取讲师信息
  getTeacherInfo(id) {
    return request({
      url: `/eduService/eduTeacher/getTeacher/${id}`,
      method: 'get', 
    })
  },

  // 3 修改讲师
  updateTeacher(eduTeacher) {
    return request({
      url: `/eduService/eduTeacher/updateTeacher`,
      method: 'post',
      data: eduTeacher
    })
  },

}